package com.geek.ch02;

/**
 * @author chenmin
 * @desc TODO
 * @date 2025/9/2
 */
public class PersonMain {
    public static void main(String[] args) {


        Person p1 = new Person("张三",25,true,null);
        Person p2 = new Person("李四",25,false,null);
        Person p3 = new Person("王五",18,true,null);
        Person p4 = new Person("孙六",19,false,null);
        Person p5 = new Person("徐七",22,false,null);

        p1.marry(p2);
        p1.marry(p5);
        p1.marry(p3);
        p1.marry(p4);
        p2.marry(p3);




    }
}
